#
# DCMTKConfig.cmake - DCMTK CMake configuration file for external projects
#

@PACKAGE_INIT@

# Basic version information
set(DCMTK_MAJOR_VERSION @DCMTK_MAJOR_VERSION@)
set(DCMTK_MINOR_VERSION @DCMTK_MINOR_VERSION@)
set(DCMTK_BUILD_VERSION @DCMTK_BUILD_VERSION@)

# DCMTK libraries and modules
set(DCMTK_MODULES "@DCMTK_MODULES@")
set(DCMTK_LIBRARIES "@DCMTK_LIBRARY_TARGETS@")

# Optional DCMTK 3rd party libraries
set(DCMTK_WITH_TIFF @DCMTK_WITH_TIFF@)
set(DCMTK_WITH_PNG @DCMTK_WITH_PNG@)
set(DCMTK_WITH_XML @DCMTK_WITH_XML@)
set(DCMTK_WITH_ZLIB @DCMTK_WITH_ZLIB@)
set(DCMTK_WITH_OPENSSL @DCMTK_WITH_OPENSSL@)
set(DCMTK_WITH_SNDFILE @DCMTK_WITH_SNDFILE@)
set(DCMTK_WITH_ICONV @DCMTK_WITH_ICONV@)
set(DCMTK_WITH_STDLIBC_ICONV @DCMTK_WITH_STDLIBC_ICONV@)
set(DCMTK_WITH_ICU @DCMTK_WITH_ICU@)
set(DCMTK_WITH_WRAP @DCMTK_WITH_WRAP@)
set(DCMTK_WITH_OPENJPEG @DCMTK_WITH_OPENJPEG@)
set(DCMTK_WITH_DOXYGEN @DCMTK_WITH_DOXYGEN@)

# Dictionary-related
set(DCMTK_ENABLE_BUILTIN_DICTIONARY @DCMTK_ENABLE_BUILTIN_DICTIONARY@)
set(DCMTK_ENABLE_EXTERNAL_DICTIONARY @DCMTK_ENABLE_EXTERNAL_DICTIONARY@)
set(DCMTK_ENABLE_PRIVATE_TAGS @DCMTK_ENABLE_PRIVATE_TAGS@)

# Compiler / standard library features
set(DCMTK_ENABLE_CXX11 @DCMTK_ENABLE_CXX11@)
set(DCMTK_CXX11_FLAGS @DCMTK_CXX11_FLAGS@)
set(DCMTK_ENABLE_STL @DCMTK_ENABLE_STL@)
set(DCMTK_ENABLE_STL_ALGORITHM @DCMTK_ENABLE_STL_ALGORITHM@)
set(DCMTK_ENABLE_STL_LIMITS @DCMTK_ENABLE_STL_LIMITS@)
set(DCMTK_ENABLE_STL_LIST @DCMTK_ENABLE_STL_LIST@)
set(DCMTK_ENABLE_STL_MAP @DCMTK_ENABLE_STL_MAP@)
set(DCMTK_ENABLE_STL_MEMORY @DCMTK_ENABLE_STL_MEMORY@)
set(DCMTK_ENABLE_STL_STACK @DCMTK_ENABLE_STL_STACK@)
set(DCMTK_ENABLE_STL_STRING @DCMTK_ENABLE_STL_STRING@)
set(DCMTK_ENABLE_STL_SYSTEM_ERROR @DCMTK_ENABLE_STL_SYSTEM_ERROR@)
set(DCMTK_ENABLE_STL_TUPLE @DCMTK_ENABLE_STL_TUPLE@)
set(DCMTK_ENABLE_STL_TYPE_TRAITS @DCMTK_ENABLE_STL_TYPE_TRAITS@)
set(DCMTK_ENABLE_STL_VECTOR @DCMTK_ENABLE_STL_VECTOR@)

set(DCMTK_FORCE_FPIC_ON_UNIX @DCMTK_FORCE_FPIC_ON_UNIX@)

# DCMTK documentation
set(DCMTK_GENERATE_DOXYGEN_TAGFILE @DCMTK_GENERATE_DOXYGEN_TAGFILE@)

# DCMTK shared libraries and build model
set(DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS @DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS@)
set(DCMTK_COMPILE_WIN32_MULTITHREADED_DLL @DCMTK_COMPILE_WIN32_MULTITHREADED_DLL@)
set(DCMTK_SHARED_LIBRARIES @BUILD_SHARED_LIBS@)
set(DCMTK_SINGLE_SHARED_LIBRARY @BUILD_SINGLE_SHARED_LIBRARY@)

# DCMTK additional options
set(DCMTK_BUILD_APPS @BUILD_APPS@)
set(DCMTK_WITH_THREADS @DCMTK_WITH_THREADS@)
set(DCMTK_WIDE_CHAR_FILE_IO_FUNCTIONS @DCMTK_WIDE_CHAR_FILE_IO_FUNCTIONS@)
set(DCMTK_WIDE_CHAR_MAIN_FUNCTION @DCMTK_WIDE_CHAR_MAIN_FUNCTION@)
set(DCMTK_ENABLE_LFS @DCMTK_ENABLE_LFS@)
set(DCMTK_ENABLE_CHARSET_CONVERSION @DCMTK_ENABLE_CHARSET_CONVERSION@)


# CMake builtins
set(DCMTK_CMAKE_BUILD_TYPE @CMAKE_BUILD_TYPE@)
set(DCMTK_CMAKE_CXX_COMPILER @CMAKE_CXX_COMPILER@)

set(DCMTK_CMAKE_CXX_FLAGS @CMAKE_CXX_FLAGS@)
set(DCMTK_CMAKE_CXX_FLAGS_DEBUG @CMAKE_CXX_FLAGS_DEBUG@)
set(DCMTK_CMAKE_CXX_FLAGS_RELEASE @CMAKE_CXX_FLAGS_RELEASE@)
set(DCMTK_CMAKE_CXX_FLAGS_MINSIZEREL @CMAKE_CXX_FLAGS_MINSIZEREL@)
set(DCMTK_CMAKE_CXX_FLAGS_RELWITHDEBINFO @CMAKE_CXX_FLAGS_RELWITHDEBINFO@)

set(DCMTK_CMAKE_C_FLAGS_DEBUG @CMAKE_C_FLAGS_DEBUG@)
set(DCMTK_CMAKE_C_FLAGS_RELEASE @CMAKE_C_FLAGS_RELEASE@)
set(DCMTK_CMAKE_C_FLAGS_MINSIZEREL @CMAKE_C_FLAGS_MINSIZEREL@)
set(DCMTK_CMAKE_C_FLAGS_RELWITHDEBINFO @CMAKE_C_FLAGS_RELWITHDEBINFO@)

set(DCMTK_CMAKE_EXE_LINKER_FLAGS @CMAKE_EXE_LINKER_FLAGS_DEBUG@)
set(DCMTK_CMAKE_EXE_LINKER_FLAGS_DEBUG @CMAKE_EXE_LINKER_FLAGS_DEBUG@)
set(DCMTK_CMAKE_EXE_LINKER_FLAGS_RELEASE @CMAKE_EXE_LINKER_FLAGS_RELEASE@)
set(DCMTK_CMAKE_EXE_LINKER_FLAGS_MINSIZEREL @CMAKE_EXE_LINKER_FLAGS_MINSIZEREL@)
set(DCMTK_CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO @CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO@)

set(DCMTK_CMAKE_INSTALL_BINDIR @CMAKE_INSTALL_BINDIR@)
set(DCMTK_CMAKE_INSTALL_SYSCONFDIR @CMAKE_INSTALL_SYSCONFDIR@)
set(DCMTK_CMAKE_INSTALL_INCLUDEDIR @CMAKE_INSTALL_INCLUDEDIR@)
set(DCMTK_CMAKE_INSTALL_LIBDIR @CMAKE_INSTALL_LIBDIR@)
set(DCMTK_CMAKE_INSTALL_DATAROOTDIR @CMAKE_INSTALL_DATAROOTDIR@)

set(DCMTK_CMAKE_INSTALL_PREFIX @CMAKE_INSTALL_PREFIX@)


SET_AND_CHECK(DCMTK_TARGETS "@PACKAGE_DCMTK_CMKDIR_CONFIG@/DCMTKTargets.cmake")

@DCMTK_CONFIG_CODE@

# Compatibility: This variable is deprecated
set(DCMTK_INCLUDE_DIR ${DCMTK_INCLUDE_DIRS})

if(NOT DCMTK_TARGETS_IMPORTED)
  set(DCMTK_TARGETS_IMPORTED 1)
  include(${DCMTK_TARGETS})
endif()
